package com.hpch.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 单页内容表
 *
 * @author EleAdmin
 * @since 2025-03-02 19:12:18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Article对象", description = "单页内容表")
@TableName("bus_article")
public class Article implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "是否删除")
    @TableLogic
    private Integer deleted;

    private Date createTime;

    private Date updateTime;

    private Integer tenantId;

    @ApiModelProperty(value = "栏目ID")
    private Integer catid;

    @ApiModelProperty(value = "分类全路径")
    private String fullcategorypath;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "缩略图")
    private String thumb;

    @ApiModelProperty(value = "简述")
    private String sketchs;

    @ApiModelProperty(value = "详情")
    private String content;

    @ApiModelProperty(value = "属性 0  未推荐  1 推荐到首页大图 2 推荐到首页要闻 3 推荐到首页列表小图")
    private Integer flag;

    @ApiModelProperty(value = "SEO关键词")
    private String keywords;

    @ApiModelProperty(value = "SEO描述")
    private String description;

    @ApiModelProperty(value = "Tags标签")
    private String tags;

    @ApiModelProperty(value = "排序")
    private Integer listorder;

    @ApiModelProperty(value = "用户id")
    private Integer uid;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "是否后台添加")
    private Boolean sysadd;

    @ApiModelProperty(value = "点击量")
    private Integer hits;

    @ApiModelProperty(value = "显示时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm" , timezone = "GMT+8")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm")//页面写入数据库时格式化
    private Date showTime;

    @ApiModelProperty(value = "链接地址")
    private String url;

    @ApiModelProperty(value = "状态")
    private Integer statusFlag;

    @ApiModelProperty(value = "推荐图片")
    private String recImg;

    @ApiModelProperty(value = "1 使用列表图 2 使用自定义图片")
    private Integer recType;

    // sources
    @ApiModelProperty(value = "来源")
    private String sources;
}
